package inabit.compiler.lexical.automaton;


/**represents a transition from a source to a target state*/
/**@author Rafael Rocha*/
public abstract class Transition {
	private String sourceState;
	private String targetState;
	
	public Transition(String sourceState, String targetState) {
		this.sourceState = sourceState;
		this.targetState = targetState;
	}
	public final String getSourceState() {
		return this.sourceState;
	}
	public final String getTargetState() {
		return this.targetState;
	}
	/**Returns <i>true</i> if the transition accepts the character <i>c</i>*/
	public abstract boolean acceptTransition(char c);
}
